package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sounds")
public class Sound implements java.io.Serializable {

    private static final long serialVersionUID = -3136732836884933885L;

    private ObjectId id; //主键id
    private Long sid; //自动增长
    private Long created; //创建时间


    private Long userId;
    private String soundUrl; //音频文件，URL
    private Integer state = 0; //审核状态，0：待审核 1：通过 2：驳回
    private Integer receiveState = 0; //是否已经被接收过 0：否 1：是
}